package com.yykj.user.center.client.fallback;

import com.yykj.user.center.client.feign.UserFeignClient;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class UserFallbackFactory implements FallbackFactory<UserFeignClient> {
    @Override
    public UserFeignClient create(Throwable throwable) {
        System.out.println("搜索微服务调用文章客户端出错:" + throwable.getMessage());
        throwable.printStackTrace();
        return null;
    }
}
